﻿<%@ Page Language="C#" AutoEventWireup="true" CodeFile="GrantView.aspx.cs" Inherits="Liberty.UI.GrantManagement.GrantView"
    MasterPageFile="~/Main.master" Title="Grant Details" %>

<%@ Register TagPrefix="uc1" TagName="GrantEditView" Src="~/GrantManagement/Controls/GrantEditView.ascx" %>
<%@ Register TagPrefix="uc2" TagName="NewNoteView" Src="~/NoteManagement/Controls/NewNoteView.ascx" %>
<%@ Register TagPrefix="uc3" TagName="NoteListView" Src="~/NoteManagement/Controls/NoteListView.ascx" %>
<%@ Register TagPrefix="uc5" TagName="GrantDetailView" Src="~/GrantManagement/Controls/GrantDetailView.ascx" %>
<%@ Register TagPrefix="uc6" Assembly="Liberty.Controls" Namespace="Liberty.Controls.WebControls" %>
<%@ Register TagPrefix="uc7" TagName="AuditTrailView"  Src="~/ApprovalManagement/Controls/AuditTrailView.ascx" %>
<%@ Register Assembly="AjaxControlToolkit" Namespace="AjaxControlToolkit" TagPrefix="cc1" %>

<asp:Content ID="Content1" ContentPlaceHolderID="ContentPlaceHolder1" runat="Server">

    <script language="javascript" type="text/javascript" src="../Scripts/DateFormat.js"></script>
    <script language="javascript" type="text/javascript" src="../Scripts/GrantDetailView.js"></script>
    <script language="javascript" type="text/javascript" src="../Scripts/Utils.js"></script>
    <script language="javascript" type="text/javascript" src="../Scripts/GrantEditView.js"></script>

    <div class="PageContent">
        <table width="100%">
            <tr>
                <td style="width: 100%">
                    <div>
                        <table cellpadding="0" cellspacing="0" border="0" width="100%">
                            <tr>
                                <td>
                                    <uc5:GrantDetailView ID="ucGrantDetailView" runat="server" />
                                    <uc1:GrantEditView ID="ucGrantEditView" runat="server" Visible="false" />
                                </td>
                                <td style="vertical-align: top; padding-top: 10px; padding-right: 5px">
                                    <div class="ServiceMemberNavigation" style="vertical-align: top;">
                                        <asp:Button ID="cmdEdit" runat="server" Text="Edit" OnClick="cmdEdit_Click" />
                                    </div>
                                </td>
                            </tr>
                            <tr>
                                <td colspan="2" style="vertical-align: top; padding-top: 20px; padding-left: 20px">
                                    <asp:Button ID="cmdSave" runat="server" Text="Save" Visible="false" OnClick="cmdSave_Click" />
                                    &nbsp;&nbsp;
                                    <asp:Button ID="cmdCancel" runat="server" CausesValidation="false" Text="Cancel"
                                        Visible="false" OnClick="cmdCancel_Click" />
                                </td>
                            </tr>
                        </table>
                        <cc1:TabContainer ID="TabContainer1" runat="server" AutoPostBack="false">
                            <cc1:TabPanel ID="NotesTab" runat="server" HeaderText="Notes">
                                <ContentTemplate>
                                    <uc2:NewNoteView ID="ucNewNoteView" runat="server" />
                                    <uc3:NoteListView ID="ucNoteListView" runat="server" />
                                </ContentTemplate>
                            </cc1:TabPanel>
                            <cc1:TabPanel ID="tabAuditTrail" runat="server" HeaderText="Audit Trail">
                                <ContentTemplate>
                                    <uc7:AuditTrailView ID="ucAuditTrail" runat="server" />
                                </ContentTemplate>
                            </cc1:TabPanel>
                        </cc1:TabContainer>
                    </div>
                    <hr />
                    <br />
                </td>
            </tr>
        </table>
    </div>
    <uc6:PageValidator ID="PageValidator1" runat="server" PostbackControl="cmdSave" />
</asp:Content>
